import fetch from 'utils/fetch';
import Cookies from 'js-cookie';

// const operatorid = Cookies.get('uid');
export function getList(requestParams) {
  const getParams = new URLSearchParams();
  getParams.append('operatorid', Cookies.get('uid'));
  getParams.append('lastlogincode', Cookies.get('lastlogincode'));
  return fetch({
    url: '/trc-service-enterprise/enterprise/queryAllEnterprise',
    method: 'post',
    params: getParams,
    data: JSON.stringify(requestParams),
    headers: {
      'Content-Type': 'application/json'
    }
  });
}

